#docker build -t seawenc/cdh-nginx-repos-centos7:6.2.0 .
FROM nginx:1.23.1

# 此包中的文件来自于https://pan.baidu.com/s/1qcb-SWB4itv1rN9-fBoVgQ 提取码: tqu2，中文件夹：cloudera-repos-6.2.0 parcel-repo-6.2.0 还有docker等
# cloudera-repos-6.2.0.tgz 中还有其它系统依赖的rpm 和docker
RUN mkdir -p /data/nginx/
COPY /mysql-connector-java-5.1.46-bin.jar /data/nginx/
RUN cd /data/nginx/ && \
    curl -O http://192.168.56.1:8000/cdh/parcel-repo-6.2.0.tgz

RUN cd /data/nginx && \
    curl -O http://192.168.56.1:8000/cdh/cloudera-repos-6.2.0.tgz && \
    tar -xzvf cloudera-repos-6.2.0.tgz && rm -rf cloudera-repos-6.2.0.tgz

COPY /cdh.conf /etc/nginx/conf.d/default.conf
